<?php

/******************************************
 * File:			login/select.php
 * Version:			1.0.1
 * Last modified:	25/10/2009
 * Last modifier:	Hugo Lavigne
 *****************************************/

 GLOBAL $PWerr;
 
#Application selection
	if ($_SESSION['users_auth'] == 'LDAP')
	{
		if ((@$_GET['action'] == '') || (@$_GET['action'] == 'login') || (@$_POST['action'] == 'login') || (@$_GET['action'] == 'deco'))
		  page('default');
		else
		  {
			$msg = "La page demand&eacute;e n'existe pas !";
			$PWerr->sWarning($msg, 172);
		  }
	}
	elseif ($_SESSION['users_auth'] == 'mysql')
	{
		if ((@$_GET['action'] == '') || (@$_GET['action'] == 'login') || (@$_POST['action'] == 'login') || (@$_GET['action'] == 'deco') || (@$_GET['action'] == 'pass') || (@$_POST['action'] == 'pass'))
		  page('default');
		else
		{
			$msg = "La page demand&eacute;e n'existe pas !";
			$PWerr->sWarning($msg, 172);
		}
	}

?>